﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WEBDT.Base
{
    public interface IModel
    {
        void commitchanges();
        IList<T> ListAll<T>() where T : class;
        T SelectByID<T>(int id) where T : class;
        T SelectByID1<T>(string id) where T : class;
        string GetPrimaryKeyName<T>() where T : class;
        void Insert<T>(T item) where T : class;
        UserPower kiemtratheoten(string tenup);
        void Remove<T>(T item) where T : class;
        IQueryable<T> Danhsach<T>() where T : class;
        IQueryable<HoaDon> GetMaxIDHoaDon(string username);
        IQueryable<LoaiSP> GetLoaiSPFromNhom(int NhomID);
        Account validateUser(string username, string password);
        IList<SanPham> ListDT() ;
        IList<SanPham> ListLap();
        IList<SanPham> ListPK();
    }
}